package com.aiit.carinsurance2.service.impl;


import com.aiit.carinsurance2.dao.InsuredDao;
import com.aiit.carinsurance2.pojo.Insured;
import com.aiit.carinsurance2.service.InsuredService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hfy
 * @since 2022-05-06
 */
@Service
public class InsuredServiceImpl implements InsuredService {

    @Autowired
    private InsuredDao insuredDao;
    @Override
    public int addinsured(Insured insured) {
        return insuredDao.addinsured(insured);
    }
    @Override
    public Insured querybyuid(Integer uid) {
        return insuredDao.querybyuid(uid);
    }
}
